package com.fm.magic.net.proxy;

import com.fm.base.net.proxy.Proxy;

import java.util.function.Supplier;

public interface ProxyPool<T extends Proxy> extends Supplier<T> {
	void doSuccess(T proxy);
	void doFail(T proxy);
	boolean add(T proxy);
	boolean remove(T proxy);
	int getRemain();
}
